/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 format_string.h

	$Header: /heroes4/format_string.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined( FORMAT_STRING_H_INCLUDED )
#define FORMAT_STRING_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <cstdarg>
#include <string>

std::string format_string_va_list( char const * format, va_list args );

std::string __cdecl format_string( char const * format, ... );

inline std::string format_string_va_list( std::string const & format, va_list args )
{
	return format_string_va_list( format.c_str(), args );
}

std::string __cdecl format_string( std::string format, ... );

#define FILE_LINE_STRING format_string( "%s(%d)", __FILE__, __LINE__ )

#endif // !defined( FORMAT_STRING_H_INCLUDED )
